Ext.define(Fsl.app.getAbsModel('M01I003001'), {
    extend      : 'Ext.data.Model',
    alias       : Fsl.app.getAlias('M01I003001'),
    idProperty  : 'id', 
    fields      : [
        {name:'id',              mapping:'id',                type:'int'},
        {name:'nameEn',          mapping:'nameEn',            type:'string'},
		{name:'nameBn',          mapping:'nameBn',            type:'string'},
		{name:'continentCode',   mapping:'continentCode',     type:'int'}
    ],
    validations :[       
        {type:'format', field:'nameEn', matcher: Fsl.regexp.Name.en.re},
		{type:'format', field:'nameBn', matcher: Fsl.regexp.Name.bn.op},
		{type:'length', field:'nameEn', min: 2, max: 45},
        {type:'length', field:'nameBn', min: 0, max: 45}
    ],
    proxy       : Fsl.proxy.getAjaxApiProxy('M01I003001')
   // belongsTo   : [
	//	Fsl.data.getBelongsTo('Fsl.admin.model.m01i001.M01I002001', 'id', 'continentCode', 'continent')
	//],
   // hasMany     :[ 
	//	Fsl.data.getHasMany('Fsl.admin.model.m01i001.M01I004001', 'id', 'countryCode', 'counties')
   // ]	
});